<?php

namespace VeCongTy\Model;

use Zend\Db\TableGateway\TableGateway;

class SettingsTable {
    
    protected $tableGateway;

    public function getTableGateway() {
        return $this->tableGateway;
    }

    public function setTableGateway($tableGateway) {
        $this->tableGateway = $tableGateway;
    }

    public function __construct(TableGateway $tableGateway) {
        $this->tableGateway = $tableGateway;
    }
    
    public function saveAdmin($uid)
    {
        $this->tableGateway->insert(array('key' => 'admin', 'value' => $uid));
    }
}